package com.initializer;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.annotation.Order;

/**
 * Copyright (c)  by www.leya920.com
 * All right reserved.
 * Create Date: 2021-01-03 10:20
 * Create Author: xuweiwei
 * File Name: MyInitializer.java
 * Last version:  1.0
 * Function: //TODO
 * Last Update Date: 2021-01-03 10:20
 * Last Update Log:
 * Comment: //TODO
 **/
@Order(125) // value越小越早执行
public class MyInitializerThirdApplicationContextInitializer implements ApplicationContextInitializer {


	@Override
	public void initialize(ConfigurableApplicationContext applicationContext) {

		System.out.println("MyInitializerThirdApplicationContextInitializer 容器中初始化bean数量:"+applicationContext.getBeanDefinitionCount());
	}
}
